The Week View component > FWeekView.previousWeek()

 

FWeekView.previousWeek()

Availability

Flash Player 6.

Usage

myWeekView_wkv.previousWeek ()

Parameters

none

Returns

Nothing

Description

Moves the Week View component backward one week. This will cause the onChangeHandler function to be called.

Example

The following code sets the selected date to the current date and then moves forward and back a week.

var today = new Date( );
myWeekView_wkv.setSelectedDate( today );


myWeekView_wkv.nextWeek( );
trace( "Week: " + myWeekView_wkv.getSelectedDate( ).getDate( ) ); //will trace the following weeks date.


myWeekView_wkv.previousWeek( );
trace( "Week: " + myWeekView_wkv.getSelectedDate( ).getDate( ) ); //will trace the today's date.

See also

FWeekView.nextWeek()